package Decorator;

/**
 * @program: homeWork
 * @description:
 * @author: hezhiqin
 * @create: 2019-10-06 08:45
 */
public class BattercakeWithEggAndSausage extends BattercakeWithEgg {

    @Override
    protected String getMsg() {
        return super.getMsg() + "+1 根香肠";
    }
    @Override
    //加一个香肠加2 块钱
    public int getPrice() {
        return super.getPrice() + 2;
    }
}
